
[class^="btn"] {
    position: relative;

    margin: 10px;
    display: inline-block;
    width: 300px;
    height: 80px;
    line-height: 80px;
    border-style: solid;
    border-width: 1px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

.btn-style-1 {

    border-color:#925073;
    color: #925073;
    transition: color .5s ease;

    &:before{
        content: "";
        position: absolute;
        z-index: -1;
        left: 0;
        top: 0;
        display: block;
        width: 0;
        height: 100%;
        background-color: #925073;
        transition: width .5s ease;
    }

    &:hover:before{
        width:100%;
    }

    &:hover{
        color:#fff;
    }

}


.btn-style-2 {

    border-color: #a751d0;
    color: #a751d0;
    transition: color .5s ease;

    span {
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;

        display: block;
        width: 0;
        height: 0;
        border-radius: 100%;
        background-color: #a751d0;
        transition: width .5s ease, height .5s ease;
        transform: translate(-50%,-50%);
    }

    &:hover span {
        width: 1000px;
        height: 1000px;
    }

    &:hover{
        color: #fff;
    }

}

.btn-style-3 {
    
    color: #af4e49;
    border-color: #af4e49;
    transition: color .5s ease;

    &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        z-index: -1;
        width: 0;
        height: 0;
        border-color: #af4e49 transparent transparent transparent;
        border-style: solid;
        border-width: 0;
        transition: border-width .5s ease;
    }

    &:hover{
        color: #fff;
    }

    &:hover:before{
        border-width: 400px 400px 0 0;
    }

}

.btn-style-4 {

    color: #41c46a;
    border-color: #41c46a;
    transition: color .5s ease;


    &:before,
    &:after {
        content:"";
        position: absolute;
        top: 0;
        width: 25%;
        height: 100%;
        background-color: #41c46a;
        transition: transform .5s ease;
    }

    &:before {
        left: 0;
        transform: translateY(100%);
    }
    &:after {
        right: 0;
        transform: translateY(-100%);
    }

    &:hover:before {
        transform: translateY(0);
    }
    &:hover:after {
        transform: translateY(0);
    }

    span:before 
    ,span:after {
        content: "";
        position: absolute;
        top: 0;
        z-index: -1;
        width: 25%;
        height: 100%;
        background-color: #41c46a;
        transition: transform .5s ease;
    }

    span:before{
        left: 25%;
        transform: translateY(-100%);
    }

    span:after{
        left: 50%;
        transform: translateY(100%);
    }

    &:hover{
        color: #fff;

        span:before{
            transform: translateY(0);
        }

        span:after{
            transform: translateY(0);
        }
    }

}

.btn-style-5 {
    color: rgb(82, 29, 80);
    border-color: rgb(82, 29, 80);
    transition: color .5s ease;

    &:before,
    &:after,
    span:before,
    span:after {
        content: "";
        position: absolute;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 0;
        background-color: rgba(82, 29, 80, .25);
        transition-duration: .5s;
        transition-property: height;
        transition-timing-function: ease;
    }

    &:before,
    span:before {
        top: 0;
    }

    &:after,
    span:after {
        bottom: 0;
    }

    span:before,
    span:after{
        transition-delay: .5s;
    }

    &:hover {
        color: #fff;
    }

    &:hover:before,
    &:hover:after,
    &:hover span:before,
    &:hover span:after {
        height: 100%;
    }
}

.btn-style-6 {
    color: rgb(25, 99, 48);
    border-color: rgb(25, 99, 48);
    transition: color .5s ease;

    &:before,
    &:after,
    span:before,
    span:after {
        content: "";
        position: absolute;
        top: 0;
        z-index: -1;
        width: 0;
        height: 100%;
        background-color: rgba(25, 99, 48, 0.25);
        transition-duration: .5s;
        transition-property: width;
        transition-timing-function: ease;
    }

    &:before,
    span:before {
        left: 0;
    }

    &:after,
    span:after {
        right: 0;
    }

    span:before,
    span:after{
        transition-delay: .5s;
    }

    &:hover {
        color: #fff;
    }

    &:hover:before,
    &:hover:after,
    &:hover span:before,
    &:hover span:after {
        width: 100%;
    }
}

.btn-style-7 {
    color: #9248bc;
    border-color: #9248bc;
    transition: color .5s ease .3s;

    &:before,
    &:after {
        content: "";
        position: absolute;
        top: 50%;
        z-index: -1;
        width: 20px;
        height: 20px;
        border-radius: 100%;
        background-color: #9248bc;
        transition: left .5s ease,right .5s ease,width .5s ease .5s,height .5s ease .5s;
    }

    &:before {
        left: -20px;
        transform: translate(-50%,-50%);
    }

    &:after {
        right: -20px;
        transform: translate(50%,-50%);
    }

    &:hover {
        color: #fff;
    }

    &:hover:before,
    &:hover:after {
        width: 400px;
        height: 400px;
    }

    &:hover:before {
        left: 50%;  
    }

    &:hover:after {
        right: 50%;
    }

}